package com.zenghus.dao.impl;

import com.zenghus.dao.IndexDao;
import com.zenghus.demo.Index;
import com.zenghus.mappers.IndexMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zenghu
 * @date 2018/5/4 14:52
 */
@Service
public class IndexDaoImpl implements IndexDao {
    @Autowired
    IndexMapper indexMapper;


    @Override
    public List<Index> getIndex() {
        return indexMapper.getIndex();
    }

    @Override
    public Integer add(Index index) {
        return indexMapper.add(index);
    }
}
